﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shuba.Model;

namespace Shuba.Business
{
    public class PipelineBulk
    {
        private Data.PipelineBulk _pipelineBulk;

        public PipelineBulk() 
        {
           _pipelineBulk = new Data.PipelineBulk();
        }

        public int GetRowNumberPipelineApproval(string update_by, string batch_id)
        { 
            return _pipelineBulk.GetRowNumberPipelineApproval( update_by, batch_id);
        }

        public int GetRowNumberPipelineByValues(string value, string batch_id)
        {
            return _pipelineBulk.GetRowNumberPipelineByValues(value, batch_id);
        }

        public int GetRowNumberPipelineReal(string value, string batch_id)
        {
            return _pipelineBulk.GetRowNumberPipelineReal(value, batch_id);
        }

        public int GetRowNumberPipelineFailed(string value, string batch_id)
        { 
            return _pipelineBulk.GetRowNumberPipelineFailed( value, batch_id);
        }

        public List<PipelineBulkInfo> GetListPipeline(string value, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return _pipelineBulk.GetListPipeline(value, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public List<PipelineBulkInfo> GetListPipelineReal(string value, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return _pipelineBulk.GetListPipelineReal(value, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public List<PipelineBulkInfo> GetListApprovalPipeline(string update_by, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return _pipelineBulk.GetListApprovalPipeline(update_by, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public PipelineBulkInfo GetApprovalByID(string UNIT_CODE, string FULL_NAME, string ADDRESS_BUSINESS)
        {
            return _pipelineBulk.GetApprovalByID(UNIT_CODE, FULL_NAME, ADDRESS_BUSINESS);        
        }

        public PipelineBulkInfo GetApprovalByIDandBatch(string UNIT_CODE, string FULL_NAME, string ADDRESS_BUSINESS, string BATCH_ID)
        {
            return _pipelineBulk.GetApprovalByIDandBatch( UNIT_CODE, FULL_NAME, ADDRESS_BUSINESS, BATCH_ID);
        }

        public List<PipelineBulkInfo> GetListPipelineFailed(string value, string batch_id, int currPage, int dataPerPage)
        {
            return _pipelineBulk.GetListPipelineFailed(value, batch_id, currPage, dataPerPage);
        }

        public List<PipelineBulkInfo> GetListPipelineFailed(string value, string batch_id)
        {
            return _pipelineBulk.GetListPipelineFailed(value, batch_id);
        }

        public int ApproveBulk(string UNIT_CODE, string FULL_NAME, string ADDRESS_BUSINESS, string BATCH_ID, string ACT_TYPE)
        {
            return _pipelineBulk.ApproveBulk(UNIT_CODE, FULL_NAME, ADDRESS_BUSINESS, BATCH_ID, ACT_TYPE);
        }

        public Int32[] ApproveBulkAll(string batch_id, string status)
        {
            return _pipelineBulk.ApproveBulkAll(batch_id, status);
        }

        public int Reject(string UNIT_CODE, string FULL_NAME, string ADDRESS_BUSINESS, string BATCH_ID)
        {
            return _pipelineBulk.Reject(UNIT_CODE, FULL_NAME, ADDRESS_BUSINESS, BATCH_ID);
        }

        public void delete(string batch_id)
        { 
            _pipelineBulk.delete(batch_id);
        }

        public PipelineBulkInfo GetAll(string ROW_ID)
        {
            return _pipelineBulk.GetAll(ROW_ID);
        }

        public PipelineBulkInfo Get(string UNIT_CODE, string FULL_NAME, string ADDRESS_BUSINESS)
        {
            return _pipelineBulk.Get(UNIT_CODE, FULL_NAME, ADDRESS_BUSINESS);
        }

        public int deteleOnBulk(PipelineBulkInfo BIInfo)
        {
            return _pipelineBulk.deteleOnBulk(BIInfo);
        }

        public List<PipelineBulkInfo> GetListPipelineExcel(string value, string batch_id)
        {
               return _pipelineBulk.GetListPipelineExcel(value, batch_id);
        }

        public List<PipelineBulkInfo> GetListPipelineeExcelReal(string value, string batch_id)
        {
            return _pipelineBulk.GetListPipelineeExcelReal(value, batch_id);
        }
    }
}
